package com.briup.cms.service.impl;

import com.briup.cms.bean.Category;
import com.briup.cms.dao.CategoryMapper;
import com.briup.cms.dao.extend.CategoryExtendMapper;
import com.briup.cms.exception.CustomerException;
import com.briup.cms.service.ICategoryService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 栏目业务实现类
 */
@Service
public class CategoryServiceImpl implements ICategoryService {

    @Autowired
    private CategoryMapper categoryMapper;
    @Autowired
    private CategoryExtendMapper categoryExtendMapper;

    // 分页查询栏目信息
    @Override
    public PageInfo<Category> pageQueryAll(int pageNum, int pageSize) {


        return null;
    }

    // 通过id删除栏目
    @Override
    @Transactional
    public void deleteById(int id) throws CustomerException {

    }

    // 批量删除栏目
    @Override
    @Transactional
    public void batchDelete(int[] ids) throws CustomerException {

    }

    // 保存栏目信息
    @Transactional
    @Override
    public void saveCategory(Category category) throws CustomerException {

    }

    // 更新栏目信息
    @Transactional
    @Override
    public void updateCategory(Category category) throws CustomerException {

    }

    // 查询所有栏目信息，不分页
    @Override
    public List<Category> findAll() throws CustomerException {

        return null;
    }
}
